package com.zzjson.thread.wait;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.thread.wait</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年08月13日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public class ThreadNotifyDemo extends Thread {
	Object object;

	public ThreadNotifyDemo(Object object) {
		this.object = object;
	}

	@Override
	public void run() {
		System.out.println("notify before");
		synchronized (object) {
			object.notify();
		}
		System.out.println("notify after");

	}
}